package com.szlanyou.cmc.controller;

import com.szlanyou.cmc.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: ly-songpengfei
 * @Date: 2025/8/8 14:57
 * @Description:
 * @Version:
 */
@RestController
public class TestAutowires {

    @Autowired
    private TestService testService;

    /**
     * @Description
     * @Author ly-songpengfei
     * @Date 2025/8/12 09:38
     * @param: id
     * @param: age
     * @Return String
     */
    @RequestMapping(value = "/t", method = RequestMethod.GET)
    public String a(String id, Integer age) {
        testService.a();
        return "success";
    }

}
